public class FacadeEncrypt {
    FileReaders fileReaders;
    FileEncryption fileEncryption;
    FileWriters fileWriters;
    public FacadeEncrypt() {
        fileReaders = new FileReaders();
        fileEncryption = new FileEncryption();
        fileWriters = new FileWriters();
    }
    public void encryptFile(String filePath, String outputFileName) {
        System.out.println("加密前:"+fileReaders.ReadFile(filePath));
        System.out.println("加密后:"+fileEncryption.encrypt(fileReaders.ReadFile(filePath)));
        if(fileWriters.writeFile(outputFileName, fileEncryption.encrypt(fileReaders.ReadFile(filePath))))
        {
            System.out.println("写入成功!");
        }
    }
}
